package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 配置mybatis plus
 * 1.引入依赖，common引过了，mybatis-plus和springBoot的启动器依赖
 * 2.配置
 *  2-1.配置数据源
 *    2-1-1.导入数据库驱动mysql → common → mysql-connector-java
 *    2-1-2.配置数据源 yml datasource
 *  2-1.配置mybatis plus相关
 *    2-1-1.@MapperScan
 *    2-1-2.sql映射文件位置 yml mapper-locations
 *    2-1-3.配置统一主键自增 yml id-type=auto
 */
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication
@EnableDiscoveryClient
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
